using System;
using System.Collections.Generic;
using System.Text;

namespace StudentManagementApplication.Business
{
    public class CourseService
    {
        private DAO.CourseDAO courseDAO = new DAO.CourseDAO();

        public void InsertCourse(Entities.Course course)
        {
            courseDAO.InsertCourse(course);
        }

        public void UpdateCourse(Entities.Course course)
        {
            courseDAO.UpdateCourse(course);
        }

        public void DeleteCourse(string sCourseID)
        {
            courseDAO.DeleteCourse(sCourseID);
        }

        public Entities.Course GetCourseByCourseID(string sCourseID)
        {
            return courseDAO.GetCourseByCourseID(sCourseID);
        }

        public List<Entities.Course> GetAllCourses()
        {
            return courseDAO.GetAllCourses();
        }
    }
}
